/*
package com.geping.etl.common.scheduled;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.geping.etl.common.entity.Logs;
import com.geping.etl.common.service.LogsService;
import com.geping.etl.common.util.Constants;
import com.geping.etl.utils.EnvUitl;
import com.geping.etl.utils.HttpUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.util.List;


@Component
public class ScheduledUpdateLogs {

    @Autowired
    private LogsService logsService;

    @Scheduled(fixedRate = 1800000)
    public void scheduledUpdateLogs(){
        String url = EnvUitl.props.getProperty(Constants.subjectId)!=null?EnvUitl.props.getProperty(Constants.subjectId):"";
        */
/**
         * result格式
         * [["2021-06-04 10:33:28","admin对XDFHZMXJL做修改处理","admin","91310000717881191L","修改"],["2021-06-04 10:33:39","admin对XDFHZMXJL做校验处理","admin","91310000717881191L","校验"],["2021-06-04 10:33:31","admin对XDFHZMXJL做修改处理","admin","91310000717881191L","修改"]]
         *//*

        String result = HttpUtil.updateLogs(url+ Constants.updateLogs);
        List<Object> list = JSONObject.parseArray(result);
        if (list!=null && list.size()>0){
            for (Object entity :list){
                String s = entity.toString();

                String s1 = s.substring(1,s.length()-1);
                String[] strings = s1.split(",");

                Logs logs = new Logs();

                String logDate = strings[0].substring(1,strings[0].length()-1);
                logs.setLogDate(logDate);

                String content = strings[1].substring(1,strings[1].length()-1);
                logs.setLogContent(content);

                String loginId = strings[2].substring(1,strings[2].length()-1);
                logs.setLoginId(loginId);

                String orgCode = strings[3].substring(1,strings[3].length()-1);
                logs.setLogOrgCode(orgCode);

                String logType = strings[4].substring(1,strings[4].length()-1);
                logs.setLogType(logType);

                logsService.save(logs);
            }
        }
    }
}
*/
